﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "IGraphicsNode.h"

namespace gcmp
{
    class IMesh;

    /// \brief 三角面片体图形节点
    class GCMP_GRAPHICS_NODE_INTERFACE_EXPORT IGraphicsMeshBody : public IGraphicsNode
    {
        DEFINE_CAST_DERIVED(IGraphicsMeshBody, IGraphicsNode)

    public:
        /// \brief 析构器
        virtual ~IGraphicsMeshBody();

    public:
  
        virtual const IMesh* GetMesh() const = 0;

    public:      
        static OwnerPtr<IGraphicsMeshBody> Create(OwnerPtr<IMesh> opMesh);
        static OwnerPtr<IGraphicsMeshBody> Create(const IGraphicsMeshBody& source);
    };
}

